<?php /* Smarty version Smarty-3.0.7, created on 2011-04-13 13:45:38
         compiled from "templates/view_all.tpl" */ ?>
<?php /*%%SmartyHeaderCode:124254da5e142387a76-92281276%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f79a6ade46c24c3dcf1df7c15c9e7288e8bcf9d7' => 
    array (
      0 => 'templates/view_all.tpl',
      1 => 1302705666,
      2 => 'file',
    ),
    'ecff8edd62bc4456f3a30265ebea0944033bcac7' => 
    array (
      0 => '.\\templates\\layout.tpl',
      1 => 1302701340,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '124254da5e142387a76-92281276',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="/nitpicker/static/css/css_main.css" />
  <script src="/nitpicker/static/js/jquery.js"></script>
  <script src="/nitpicker/static/js/nitpicker.js"></script>
  <title> <?php echo $_smarty_tpl->getVariable('categories')->value[$_smarty_tpl->getVariable('category')->value];?>
 </title>
</head>
<body>

<h1> <a href="/nitpicker/"> The Nitpicker </a></h1>
<div id= "log_in_log_out">  <a href= "/nitpicker/user_nits.php"> View Your Nits! </a> <?php if ($_smarty_tpl->getVariable('is_logged_in')->value){?> <a href="log_out.php"> Log Out! </a> <?php }else{ ?> <a href="log_in.php"> Log In! </a> <?php }?> </div>



<div id= "create_incident"><a href="new_incident.php"> Got a nit to pick? </a></div>
<fieldset id= "view_all_field">
<h2> <?php echo $_smarty_tpl->getVariable('categories')->value[$_smarty_tpl->getVariable('category')->value];?>
 </h2>
<ul>

<?php  $_smarty_tpl->tpl_vars['incident'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('incidents')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['incident']->key => $_smarty_tpl->tpl_vars['incident']->value){
?>

					<li> <a href="view_incident.php?incident_id=<?php echo $_smarty_tpl->tpl_vars['incident']->value['incident_id'];?>
" > <?php echo $_smarty_tpl->tpl_vars['incident']->value['incident_title'];?>
 </a> <span class="rating">  <?php echo $_smarty_tpl->tpl_vars['incident']->value["rating"];?>
 </span> 
				<?php if ($_smarty_tpl->getVariable('is_logged_in')->value&&!$_smarty_tpl->tpl_vars['incident']->value['is_rated']&&!$_smarty_tpl->tpl_vars['incident']->value['is_created']){?> <a class= "plus_one"  data-incident_id=<?php echo $_smarty_tpl->tpl_vars['incident']->value['incident_id'];?>
 href="#" > + 1</a> 
				<?php }?>

					</li>
					<?php }} ?>
</ul>					
</fieldset>

</body>
</html>